package com.yaoq.singleton;

/**
 * @ClassName HungryConstSingleton
 * @Description TODO
 * @Author yaoqiang
 * @Date 2020/9/1 18:16
 * @Version 1.0
 */

public class HungryConstSingleton {
    private static final HungryConstSingleton instance = new HungryConstSingleton();

    private HungryConstSingleton() {//构造器私有化防止new
    }

    public static HungryConstSingleton getInstance() {
        return instance;
    }
}
